﻿




using Hotpot.Modules.Blogs.Models;

namespace Hotpot.Modules.Blogs.Extensions
{
    public static class BlogExtensions
    {
        public static Blog Apply(this Blog blog, BlogInput input)
        {
            return new Blog(blog.Site.ID, input.CommentingDisabled, blog.Created, input.Description, input.DisplayName, blog.ID, blog.Modified, input.Name);
        }

        public static Blog Apply(this Blog blog, BlogInputForImport input)
        {
            return new Blog(blog.Site.ID, blog.CommentingDisabled, input.Created, input.Description, input.DisplayName, blog.ID, input.Created, blog.Name);
        }
    }
}
